Deal with new sem_wait2 and sem_wake2 syscalls in head.