add posix spin lock class and use it in simple thread pool