Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) affect the master router.

Please see [#23933](https://code.djangoproject.com/ticket/23933).