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

Pay close attention here! :smiley: 
Being sure is good :)