A Braintree manufacturer of motion control and power transmission products has agreed to be acquired and taken private for $5 billion by a Wisconsin competitor.