Any number of persons having such liens upon the same ship or vessel may join in the same petition to enforce them, and the same proceedings shall be had in regard to the respective rights of each petitioner and the respondent may defend as to each petitioner in the same manner as if they had severally petitioned for their individual liens.