Thank youI have done that on domestic flights without any problem. Usually, TSA will ask to inspect the razor to be certain there is no blade in it.
They are allowed by the rules.No, I wouldn't do it. In Europe they employ a random at the gate secondary scanner often. I've been through several mobil carry on scans that involved 100% of passengers. Just follow the rules and you will not have any problems.