Fix bug cell toolbars not redrawing on metadata change

Fix bug where cell toolbars are not redrawn when cell metadata is changed.

Extracted from https://github.com/ipython/ipython/pull/6638 which will be changed into an extension.