Slide lock for motor compartment door