If this is how you would do it, then sure... go ahead. It seems nonsensical to me, so I'd handle it how I've already described many times.
If the roll failed then enough noise was made by the thief that the cook heard the lock picking. She is alerted. She probably turns, her brow furrowed, to...