Synchronize all accesses to _urlProperties

This way, no more locks are needed in calling classes like FrameworkModel (addUrl, etc.).
Removed also the Cookie cast to avoid warning at compilation.