Just as valk1j and you stated, the gear does pull away from the gray part; however, the gear must be rotated to pull free. The lock mechanism only allows for one-way rotation, thus you get this in gear-up position without taking apart the leg and flipping the gray piece around:
The bay door does close completely and the gear/wheel has the proper orientation in gear-down position.