Mortgage lender LoanDepot is taking steps toward rebooting plans for an initial public offering, about five years after scrapping one at the last minute, according to people with knowledge of the matter.