[PATCH 4.14 75/91] libceph: validate con->state at the top of try_write()