Fix a hang on synchronous read timeout