Open the DB unlocked, and do file locking ourselves using the