use posix spin lock for LockedBool if available