Add an optional `max_retries` argument to the `db.Reference.transaction()` method. Currently it uses a fixed retry count (25).