kernel - Fix system lockup w/ kqueue based select/poll due to dup2()