Release read lock in invocation strategy

Database activation can fail due to an unreleased read lock, the fix is to ensure the read lock is released on all paths.