sysctl: fix write access to dmesg_restrict/kptr_restrict