Optimizing a Spin-Lock