My guess is a faulty booster allowing engine vacuum to apply the brakes. Next time it happens, pull the vacuum hose check valve out of the booster to see if it will release the brakes.