Indra and Ashura had the ability to transmigrate so they basically have full control over souls. they got that feat from Hagoromo because his Rinnegan gives him control over pure world and Outer Path puts him outside the cycle of life and death. Madara and Hashirama broke free because any seal below chakra rods isnt strong enough to retain their chakra and also because they have control over their souls like Madara displayed when Itachi undid the jutsuI think its less to do with Indra and Ashura's chakra and more with the fact that Hashirama and Madara were nearly god-tier when they were resurrected. Similarly, if Orochimaru were to remove their boundaries when first using Edo Tensei back in part 1, it js strongly implied that Tobirama would have broken out despite not being a transmigrate.