kernel: Fix NULL dereference in has_permission_to_signal