Allow typechecker to interpret WaitHandle result()

Avoid problems with typechecker on hhvm 3.5 version