Fix so that read-only transactions actually do have transaction state

Fix for this issue:
https://github.com/neo4j/neo4j/issues/2581