Yii 2 mutex backported to Yii 1.*: