fix #12011: move/delete datasets that share images

Fixes http://trac.openmicroscopy.org.uk/ome/ticket/12011 and assists http://trac.openmicroscopy.org.uk/ome/ticket/11610.

Try moving and deleting datasets that contain images that are also in other datasets. Something not-obviously-wrong ought to happen, which probably suffices until the major graph traversal reworking of https://trac.openmicroscopy.org.uk/ome/ticket/11779 is done.

Also check that http://ci.openmicroscopy.org/job/OMERO-5.0-merge-integration-python/lastSuccessfulBuild/testReport/test.gatewaytest/test_chgrp/ has no skips or fails.