An attempt to implement futex_atomic_op as in NetBSD.
Removing some unneeded code.