If your brakes are locking up which is what I think you are referring to then disconnect the vacuum hose going to the booster. If they release then there is pressure on your booster. Which can be the pedal needs adjusting which is common after changing booster or check the brake switch in front of the pedal. If it’s too far in it puts pressure on the pedal which builds up booster pressure. It’s just something people don’t usually think to check.