Hi,
I know it is a little bit late, but maybe somebody also run into this problem. (as i did)
I could resolve this problem by changing the locking to file locking instead of mysql_lock_factory to file_lock_factory.
Just add the following line to config.php
$CFG->lock_factory = "\\core\\lock\\file_lock_factory";