Blocking bugfix for mysql lock