Section 51. If a mill which is owned by joint tenants or tenants in common, or the dam or appurtenances of such mill, require repairs or rebuilding in whole or in part, and all the proprietors do not agree to join therein, a majority in interest of the proprietors may cause the work to be done at the expense of the whole in proportion to their respective interests.