Fix a data race in close()