GUI: fix possible race while removing of groups