vector file writer: avoid duplicate destruction of coordinate transform in case of exceptions (fixes #9993)