Prevent PatchStore locking in ReadOnly mode.

This allows a properly configured autopatcher to run against a database
to which it has read-only access as long as the system is already
patched.