Isomonodromic deformations of logarithmic connections and stability