PennyMac posted a record profit in the second quarter and went on a hiring spree to support its origination and servicing activities.