Avoid gen_server call timeout error after compacting a database (seems to happen only for large DBs, but not always).