Commutation properties of semigroups for first-order Hamilton-Jacobi Equations and application to multi-time Equations