add pthread spin lock hook