[PATCH 4.16 088/113] libceph: validate con->state at the top of try_write()