Is there a way to lock a node?
you could just hide the node? (press H) Then it would look like this:


if you have multiple nodes, i suggest you make a node group, which will protect the nodes inside the group

I don't think there is a lock functionality