Enhanced magnetocaloric effects and tunable thermal hysteresis in transition metal pnictides