Bugfix GMU: read-only transaction tried to acquire the read locks.

The lock acquisition for read-only transactions is not needed because they will not be validated.
This way it avoids contention on the keys (and possible conflicting with the writes)