Fix potential timing issue in db_test.cc

Read the delete-request-counter before enqueue. Reading counter after enqueue
can potentially run after the task from enqueue is done

Change-Id: If73d12c248f9f5734e16981d25337690a392befe
Merge "Fix potential timing issue in db_test.cc"