deref of NULL might get optimized away (so says clang)
compatible with MySQL 5.6 (though a seperate patch needs to be applied to MySQL 5.6.10 (see https://gist.github.com/kazuho/4994203), to use queue_wait() in WHERE condition)