For my use case, randomness would make it even worse. For muscle memory, consistency is key. I don't know what the solution is - ideally, the app would not interrupt such quick actions like unlocking to take a photo or switch the song, but in practice, it can't exactly
guess what I'm going to do before I do it. I was thinking about maybe "unlock and don't show the popup for the next 5 minutes", but then I already know that one of these days, I'll activate it for "one quick check of Instagram" (or HN), defeating the purpose of the application.
Sorry I can't be more helpful. I've been mulling this problem (selective blocking in dual-purpose apps/sites) in my mind for a long time now, but I haven't found any solution so far.