Added a spin lock to the utils.