fix an issue where references are removed from within a callback iterating over the references
fix an issue where references are removed from within a callback
iterating over the references

jpfr/open62541,StalderT/open62541,JGrothoff/open62541,JGrothoff/open62541,StalderT/open62541,open62541/open62541,open62541/open62541,JGrothoff/open62541,jpfr/open62541,StalderT/open62541,open62541/open62541,open62541/open62541,JGrothoff/open62541,jpfr/open62541,StalderT/open62541,jpfr/open62541