If several actions brought to enforce the liens herein provided for are pending at the time, the court may order them to be consolidated; and in any action brought to enforce a lien, if the building or other improvement is still in course of construction, the court, on application of any party engaged in furnishing labor or materials for such building or improvement, may stay the trial thereof for a reasonable time to permit the filing of a lien statement by such party as herein provided.
R.L. 1910, § 3875.