Fixed leaking LockManager