Grant-Free Power Allocation for Ultra-Dense IoT: A Mean Field Perspective