Update restagent.lib.php

Added protection for PHP versions prior to 5.2.10 where CURLOPT_TIMEOUT_MS is undefined.