Fix double free for ucred in sys_cap_enter