Fix bug (not tested yet) - in rare cases there can infinite locks of
targets in status CASCADE_COMPUTING. Fixed but not tested by me.