core: fix auto-apply of window layout in current window when option irc.look.buffer_switch_autojoin is on