[PATCH 3.16 229/366] libceph: validate con->state at the top of try_write()