qtgui: fixed thread-safety in GRC variable-type blocks