Chanke the locking mechanism to be more atomic (dedicated .lock... file)

Force the reload of resources (new resources where requirering a server restart)
Do not loop for all the resources if one is missing.