The homestead may not be partitioned among the decedent's heirs:
(1) during the lifetime of the surviving spouse for as long as the surviving spouse elects to use or occupy the property as a homestead; or
(2) during the period the guardian of the decedent's minor children is permitted to use and occupy the homestead under a court order.