An already unwieldy and drawn-out foreclosure process in New York now offers one more pitfall for lenders, thanks to legislation signed at the end of 2022.