ptr_valid: fix spurious SIGINT under lldb on MacOS