fixed fine-grained locking code
lockfree