These "padlocks" come from the "block bar" (the yellow bar that appears in the tree). Simply pull up the lock bar and the padlocks will disappear.
This block bar is used to block certain functions so that solidworks does not constantly rebuild them and slow down the software on a complicated part.
With a right click on the progress bar (line after the functions with padlock), I unlocked. The padlocks have disappeared. On the other hand, how did they appear?? Mystery
I actually never got this yellow line, because the "Enable Block Bar" option was unchecked. Hence my astonishment at this appearance, by manipulating the 3D, without going to Option.
Activating the block bar seems interesting to me, given the time it takes to open a file, and during functioning.
I have sometimes modified a function, which has "skipped" functions upstream. That functions go red after the modified function, I understand. That functions upstream of the modification go red, I don't understand anymore.
So, by blocking for example the first 20 functions, if I modify the 100th function, is there a risk that one of the functions "jumps" or does it really block for sure?
The block bar simply blocks the rebuild, these functions will be rebuilt when they are unlocked. So blocking them does not prevent errors that can occur after modifications, these errors could occur during the reconstruction (and therefore unblocking) of these functions.
However, there is little risk that changes to functions will cause blocked functions to "skip", since the blocking bar only works in the order of the tree. (A function change will have no influence on features higher in the tree.)
Agree with @lionel, on a "simple" part, actions on posterior functions have no influence on anterior functions.
EXCEPT... If you are creating value connections (right-click on a dimension/Link Value), equations, shared sketches, or you have drawn your part in a context (sketch relationships outside the part).
I've already seen on a part drawn in a context (cable in a machine). The fact that the assembly was evolving put me at fault (yellow trangle) my basic function which was a sweep, despite the positioning of the blocking bar at the very bottom of the tree.