Private-credit firms stoked by surging demand for nonbank lending are pulling out all the stops to hire talent, driving up overall compensation levels and sometimes taking each other to court.