Resolving Rails Runtime Errors: Unpersisted Change with with_lock