Fixes atomic operations on read-only attributes

I don't know if it's best to raise Errors::ReadonlyAttribute in this case.

fixes https://github.com/mongoid/mongoid/issues/3610