Any number of persons who claim liens against the same property may join in the same action, and when separate actions are commenced the court may consolidate them.