fix check for Darwin spin locks