I have a suggestion that my therapist gave me, that seems to be working.
Buy some post-it notes. Before you go to bed, write every thought on them, one thought per note, and toss them up on your wall away from your bed. Then you tell yourself (every time you post a note up) "okay, this thought is over there now, it's out of reach, I can no longer touch it to obsess over it. I am not giving myself permission. I am letting it go". Do that for every thought.
As you're laying in bed, if those thoughts creep in, say it again. Name the thought "I am not giving myself permission to obsess over the locks at work since I can't control that now, so I am letting it go". Sometimes it takes a while for it to work, but for me, it does work.