The transfer of any debt secured by a trust deed shall operate as a transfer of the security therefor.