update
by
VG
:

Make an attempt to lock a database before opening it up.
Prevents opening up same database by different processes,
resulting in database corruption.