Rename lifetimes of deref and deref_mut to avoid lifetime shadowing (deprecated and will be removed). See Deref Implementation of core::cell::Ref for a similar case
Use new thread::Thread to spawn
Remove runtime checks
Merge branch 'upstream' of https://github.com/phil-opp/spinlock-rs
merge remote-tracking branch 'upstream/master'