I've done the bit of taking the lid off empty containers with the TSA with no problems.
If you ask the FA for hot water, keep in mind that there is a huge risk that the water will have been heated in a container that previous was used to make COFFEE. The resulting taste is awful.