YARN-2001. Added a time threshold for RM to wait before starting container allocations after restart/failover. Contributed by Jian He.

(cherry picked from commit 485c96e3cb9b0b05d6e490b4773506da83ebc61d)