Added some lock()/unlock() support for SQLite using lock file emulation

Change-Id: Ifd70d06055c74715c52758615c3081dde409c9a6
Merge "Added some lock()/unlock() support for SQLite using lock file emulation"