A master cylinder can be one of the major reasons why your brakes lock up while you are driving. Get your vehicle to a mechanic immediately if such a situation arises.