On the self-adjointness of differential operators with finitely or infinitely many variables, and evolution equations