Use WTF Locking primitives in WebThread and drop pthread_xxx use