Logging changes.
Release uses exclusive lock. Truncate and move use a shared lock.
Comment changes.
Merge in master and locking changes.