Added thread count TODO.
Hibernate: Added invalidation to local cache remove.
Fixed LockStore creation.