Clsoe the tab list menu when clicking the button twice.

The menu was closed, but immediately reopened by the click on the
button. If the time since the menu closing is shorter than a
double-click delay, don't open the menu again.

Fixes #9538.