Normally the position holding is done at the device driving the axis. Example; a brake on the Z axis motor.
I guess it would be possible to add a small electromagnet on a bracket attached to the bearing block. Maybe something like this https://www.ebay.com/itm/55-LB-Elect...4AAOSwfVpYpfn4