Localising Dehn's lemma and the loop theorem in 3-manifolds