Use set-face-bold-p rather than set-face-bold.