Your PS5 games have locks on them because you haven’t purchased them yet. Additionally, whoever is sharing the games with your account, has disabled Console Sharing & Offline Play option. Also, if the game is out of license or someone turns on the Parental Controls, you will see the lock icon.