Any person having an estate of inheritance, or for life, or for years, in lands, and holding or being in possession thereof, as tenant in common or otherwise, with others, is entitled to partition thereof, or sale for partition, under this chapter.