Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.

The migrations autodetector now issues AlterModelOptions operations for
Meta.managed changes instead of DeleteModel + CreateModel.

https://code.djangoproject.com/ticket/24037
`test_managed_to_unmanaged` for consistency with `test_unmanaged_to_managed`?