Add lock_wait_timeout on MySQL lock_database function