removed unused GlobalWrite::{downgrade,upgrade} mechanism #816
removed old dbpath parameter usage from *Context #816
added context to LockState, management in scoped locks and *Context #816
added reasons for each lock in the production system #816