[PATCH 6/9] winhttp: Factor out receive_close_status() function.