with means preventing the detent to return to its latching position before the bolt has moved to the unlatched position