Fix hpx future
functors passed to then must have one future argument
Fix shared memory future