Emulate umtx_sem2_{wait, wake} in userland.

Because of big/little endian issues umtx_sem2 must be emulated as much
as possible in userland.