KAFKA-1257 Only send metadata requests to nodes with no in-flight requests.
KAFKA-1259 Close blocked only until all messages had been sent not until all acknowledgements had been received.