YARN-2561. MR job client cannot reconnect to AM after NM restart. Contributed by Junping Du