use spinlock from maidsafe::detail