Only set the readOnly() flag at initial construction if it is set to `true` by default.