Persons who have or claim any liens upon the property by mortgage, judgment or otherwise, need be made parties to the action, unless such liens be matters of record.