ActiveModel::Model inclusion chain backward compatibility

Thanks @woto for identifying a backward compatibility issue: https://github.com/woto/rails/commit/9fc20cfc0089823d0fe9c7066f536647ee5f8f23

Related PR: #11004

cc @josevalim @rafaelfranca