MySQL replication - invalidating query cache entries (table)
Was query_cache_type OFF (0) in my.cnf, not merely turned off later?  (This seems to be critical for having it really off.)
Another possible common thread in the bugs -- MyISAM.  If you are using MyISAM, you really should convert to InnoDB.  There are many reasons for converting.  Here are some tips on doing the conversion:  http://mysql.rjweb.org/doc.php/myisam2innodb
Make sure that query_cache_wlock_invalidate is OFF.