I would lock the chickens out, spray, run, then come back. If any has dripped onto the wood or shavings, just wipe it up and scoop up any wet shavings. Let the spray dry for a little while, then let the chickens back inside.
That's what I'd do. I can't say how "safe" it is, but if you've...