Fix a crash when two threads try to update the resource requests at the same time...