Barclays will keep iShares’s securities-lending unit, and will retain a 20 percent stake in the unit, one of the people said.