I take it back, don't change this to `ensure`, because it will open up a can of worms related to the shitty mutex usage. Can be fixed another time :)