Added spin locks to afs