I'm not sure a gasket sealant will hold if the cap is cracked, but might be worth a try.
Alternatively, how about dumping a load of epoxy over the cap to seal it? You won't be able to remove it after, but it should suffice until you replace the faulty brake.