Being denied internal mobility is the second-most reason employees quit. Here's what companies can do.