DBStateServer: Do not request database objects until the LoadingObject is recorded into m_loading.

This fixes a bug where the request comes back from the database (running in the same process) before m_loading
has the do_id stored, so the discard_loading doesn't properly work.