I'm having this same problem, except for me, it's at home, whenever there's baked goods in the apartment. I tell myself all day at work, "Okay, I've had my one brownie for the day, that's all I need." Aaaaand then I get home and I finish the pan.
For me, my problem is easily enough circumvented: don't bake. Except, I want to be able to have those treats now and then once I get to the maintenance stage, and I need to learn how to control those urges so I can. :/
I'm afraid I don't have much to add as a solution. Your situaiton is a lot harder to avoid than mine. I haven't discovered much in the way of strategies to take care of it. The closest I've gotten other than "just tough it out" (which just doesn't work, either for brownies or ice cream!) is that I discovered alternate foods which are healthier and still satisfy those cravings. Are you allowed to bring outside food to work? I realized that I associate the taste of bananas with dessert: banana bread, for instance. So, if I'm craving dessert, eating a banana sometimes helps. Nothing to feel guilty about a banana.
Distraction is a powerful tool for avoiding overeating, too. Like you wrote, I notice my own cravings are strongest when I'm bored, or otherwise not actively engaged. Maybe there's something you can clean when work is slow? That's what they always had us do when I was working in the burger shop, anyway.
Best of luck! I'll be watching this thread for good solutions, because I want to be able to bake without putting an extra couple thousand calories in my body within a day!