Allow conninfos to be marked as readonly

This is to support sessions that connect to readonly streaming replicas
for testing, by avoiding global setup and teardown.