s3:gencache: Allow to open gencache as read-only