Allow timeouts with better precision than seconds

PHP stream api is a bit *weird* and expects an integer as the second stream_set_timeout parameter. This allows float values in timeouts

The patch was originally made by @davegardnerisme at https://github.com/davegardnerisme/php-amqplib and is used at Hailo. 

Probably worth considering adding it to the main repo?