versionlock doesnt work for kernel unfortunately: versionlock: ignored for `kernel` upgrade · Issue #2368 · rpm-software-management/dnf5 · GitHub
You could try, though someone mentioned that this isnt possible either Perfect Fedora WS - how to "pin" a specific kernel - #8 by anothermindbomb