Place it immediately after a knock at a closed door, letting the refusal answer the attempt before the scene cuts away. Follow it with a classic error sound when the character tries again, and keep the locked-door moment as the centre of the edit rather than burying it under other effects.