Quantum and classical dynamical semigroups of superchannels and semicausal channels