replace most mutexes in simple thread pool example with spin locks