atomic.py: Remove try/finally on __exit__ and add os.close(fd) on __enter__