Optimizing synchronization primitives, again