update (bug 42684)

update
by
VG
(fixes bug 42684)

:

Use Java NIO to lock database on startup.
Thanks to Natalia Shilenkova.