Fix typos isReadyOnly
Add ISession.getOpenSessions and EventContext.isReadOnly

See #2265 for when the isReadOnly flag was removed.
We will need to make sure the various cases are taken
into account.