Fix wait* methods of future.

These methods are const, but underlying methods of ready_state was not const. So it didn't compile.