Sleep before checking the resource count when testing
Sleep before checking the resource count when testing

Apparently we have to yield explicitly after triggering the GC to
actually see all resources being released on OTP-22.

hansihe/Rustler