Why do the brakes lock when not applied by foot after changing the master cylinder on a 1985 Honda CRX?

Check the freeplay. If the linkage is too tight and there is no free travel in the pedal, the master cylinder may not be releasing, which allows pressure to build up and the brakes to apply. A good manual for this car should have the proper adjustment described.