Bounded cohomology for solutions of systems of differential equations: applications to extension problems