sc class library: replacing the source of a node proxy led to hanging patterns

When the previously added pattern hadn't started, adding a new pattern to a node proxy left the old one hanging. Now add the pattern to the list before it is started.