US, China consulted on safety as their crafts headed to Mars