[bugfix] Make PanelDockWidget disable associated display only when press...

...ing close button, not on any visibility change. Fixes #520