Fix reregister / deregister semantics on kqueue