Looks I solved it by installing Fedora official packages for RT and lensfun (not building from sources) and then copying over the updated LF db:
sudo cp /home/andrew/.local/share/lensfun/updates/version_2/mil-nikon.xml /usr/share/lensfun/version_1
Now Z6 is recognized automatically and I can select the lens manually.
Thanks everybody for the help!