Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.

https://code.djangoproject.com/ticket/24054