Fix a race in the construction of future.  This fixes http://llvm.org/bugs/show_bug.cgi?id=14934.