Simple spinlock with backoff

A change towards #11.