[PATCH 4.4 39/44] libceph: validate con->state at the top of try_write()