Chest needs to be rotated so it is upside down, then the snack will fall out of it. You can then collect the snack and it unlocks the door :).
oh I didn’t think about that!