yesod: make arch-specific locking primitives more shared memory friendly

Signed-off-by: Alex Dubov <oakad@yahoo.com>