Fixes atomic operations on read-only attributes

Im also having this issue, so I send a pull request.
not sure if should raise an error ReadonlyAttribute ?

fixes https://github.com/mongoid/mongoid/issues/3610