Trapping knots in `locked' linear oligomers