The nm_os_selwakeup function needs to call knote() to wake up kqueue(9) users.
However, this function can be called from different code paths, with different lock requirements.
This patch fixes the knote() call argument to match the relavant lock state.
Reported-by: Aleksandr Fedorov <aleksandr.fedorov@itglobal.com>