A purchaser at a foreclosure sale held pursuant to this chapter shall be entitled to possession upon passage of title under subsection (a) of this section to the mortgaged property, subject to any interest or interests not barred under section
3765 of this title. Any person remaining in possession of the mortgaged property after the passage of title shall be deemed a tenant at sufferance subject to eviction under local law.