CLN: use with instead of try finally in `io/stata.py`
This is reported by lgtm.com.
hmm do you know why lgtm is reporting this? this is a context manager, maybe not picking it up somehow?

cc @twoertwein  thank you, looks good! sorry i was looking at the old. thanks @fangchenli 