Banks with soured loans and mortgages have been reluctant to sell the underlying real estate assets at a loss — but that is changing.