Unsubscribe MantidMatrixFunction observers on object destruction.

Poco does not do this automatically and if they are left in the observers
list then the next notification is dispatched and tries to be handled
by a deleted object.
Refs #8867
Merge remote-tracking branch 'origin/bugfix/8867_crash_ws_delete_3dplot'