I see 2 problems to overcome.
1. Mach is a buffered system all moves are planned adn then sent to the buffer for output. Once in the buffer there is little interaction back to mach as to when a Aaxis move is being sent out.
2. Latency of the mechnanism. You will need to be able to "start" to deactivate the brake long BEFORE mach makes the actual move.
There is a signal mach has "current hi/low" that can trigger a relay on axis movement, we use it to drive the timer for the lube pumps, BUT by the time the Brake reacts it it will be too late. Servo error or lost steps would be the results
We worked on this for a while a long time ago. Even Art suggested it would not work without driver level intervention.
NOW what we did get to work fairly well was rewriting the CAM post to enclude the Brake function before and after the index move that worked well for CAMed situations. BUT it could not do interpolated 4th axis moves well. Abig mess actually.
BUT you never know, maybe

?