Whenever any lienor shall assign to any other person the debt or claim secured by a lien, such assignee shall be entitled, unless it is otherwise expressly agreed, to take possession of the property and hold it by virtue of the lien, in the same manner as his assignor was entitled to hold it before the assignment.