Better lock granularity in gtkhtml fetch thread (fixes NB#110127)