Added support for releasing content locks upon disconnect

This ensures that even if a client crashes, the lock will be released