Moved the region lock into its own file in stdlib/locks. Moved some other files around to make the fix libs less cross poluted.