Security icons

i don’t understand the behaviour of some icons:
i have two windows with the same permissions and i see one of them with the yellow lock icon, while the second has no security icon… is it normal?

Does the lock icon appear once you save the project?