reboot(8): print syscall error on sysctl failure
(cherry picked from commit a294b02fbc07fa8466c8fc12311e7d4e92332467)