PayJoy has raised $20 million from Greylock Partners. The San Francisco-based startup enables consumers to purchase smartphones on installment payments and get cash loans. It does so by turning the smartphone into collateral through software that locks the phone when payments have not been made.