Get rid of direct references to emulation thread in branchesmenu.cpp