A locking mechanism which includes a locking member which is movable between a locked position and an unlocked position, a retaining device which is movable between a first position at which movement of the locking member from the locked position to the unlocked position is prevented and a second position at which movement of the locking member from the locked position to the unlocked position is allowed, and an actuator for moving the retaining device between the first and second positions.