Synchronize checkDatabases.

This function can delete the database while other
threads are trying to read it, which is bad. The readers
are already synchronized methods so this should prevent
that.

Bug: 8964541
Change-Id: Ib2f606f274500f0935a5f0211609cf458a0a6005
1 file changed