Phase transitions for deformations of JT supergravity and matrix models