adding RESOURCE_ANY_ID to dispatch_constants to be used when we want to lock a resource collection instead of a specific resource and updating applicability regeneration to use resource locking