Raise error when saving readonly documents:

Documents loaded using #only on criteria will be flagged as readonly and
will raise a ReadonlyDocument exception when attempting to save or
update them.

[ #1908 ]