Pleaase make sure the database tables are using InnoDB storage engine and READ-COMMITTED transaction isolation level.
Now you can check it by SELECT @@GLOBAL.tx_isolation, @@tx_isolation; on mysql console.
If it is not set to be READ-COMMITTED then you must set it. You must make sure before setting it that you have SUPER privileges in mysql.
Further Readings :