Release scanFile directoryLock after updating database.

scanFile() on single file should release directoryLock after updating
the database. Two apps calling scanFile on same file might try to insert
the file into database simultaneously, and one of the insert operation
will fail with SQLITE_CONSTRAINT_UNIQUE. We can avoid this by holding
the directory lock until the database update is complete.

Test: atest FuseDaemonHostTest
Change-Id: Ia8cc829d34ac64e7952d506878fd324527f91974
1 file changed