Added mcs lock and spinlocks with backoff.