[PATCH 3.18 24/25] libceph: validate con->state at the top of try_write()