>I may easily forget to switch "mutex" component as well.

For this case there are DB driver name checks: https://github.com/yiisoft/yii2/pull/580/files#L2R14