libtests: add a wait_ms() function

This allows a libcurl test to portably sleep for a given number of
milliseconds.
lib1506: make sure the transfers are not within the same ms

Just to make sure the test is properly repeatable.

Bug: http://curl.haxx.se/mail/lib-2014-05/0081.html
Reported-by: Henrik