Add a test: testDBClientAction::test_endExecAction().
Fix a deadlock.

ActionManager::execCommandAction() calls lock() before
calling ActorCollector::addActor(). So the lock in the
function is not needed.