I had a conversation with our Discourse instance admin about it.
I was informed that „locked topic” is referring to one, in which no more replies are possible. This is not what I was referring to.
Instead it appears the thing is called category (so confusing to have both when creating a new thread). My apologies.
So I create a thread in a category with restricted view access. It is not publicly visible but instead requires a profile to be assigned to a group.
The custom CSS is then hooked on .read_restricted.
Does this makes things clearer?