FELIX-5274: remove callback fails after manually removing dynamic dependencies (the DM state machine is now not reentrant anymore).