REGISTRATION RIGHTS AGREEMENT BY AND BETWEEN BUFFALO INVESTOR I, LP, BUFFALO INVESTOR II, LP AND SEMGROUP CORPORATION dated as of July 17, 2017