Do not hold the lock more than is necessary in FileDB.

Pay close attention here! :smiley: 
CHECK (and elsewhere)