3.6.x uptime fix solaris

Cherry picked from master: Return the correct number of seconds for the system uptime on solaris.