Fixed cb_coarse_db_update_dbsize so it uses wrlock instead of rdlock