kernel - x86_64 - Add additional checks to lwp_wait() & friends