lock: Add QSpinLock.

Just a basic spinlock class. Conforms to NSLocking.