Reimplemented dispatcher database lock and synchronization primitives.