Fix Trac #4396, by localising pattern binders in the desugarer