Even if the pedal is physically connected to the brake cylinder ABS can do whatever it wishes to: ABS can apply and unapply brakes at any time, also asymetrically.
Mechanical failure was always possible with brakes.
This years F1 cars are brake by wire. It let's them control the kinetic energy recovery better.