kqueue: Fix for mask/unmask func.