[TabBar] Don't close pinned tabs with middle mouse button. Closes #1239