Isomonodromic deformations of irregular connections and stability of bundles