My record after a couple of runs is three safes. I think there is one more, but the countdown kills me every time =)
Took me a while to figure out that the guards only look straight ahead (on the tile map).
Nice little challenge you coded here!