Displacement and dissociation of oligonucleotides during DNA hairpin closure under strain