[libsocialcache] Ensure queries in dropTables() succeed

Finish user_version query before calling dropTables(), else db is still
locked when dropTables() tries to execute additional queries.