Fixes AMQ4368.  Make sure we don't try to GC the database midway through a store operation.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1455661 13f79535-47bb-0310-9956-ffa450edef68