Call sysctl_head_finish on error