Flagging posts in closed thread causes an error

TNL-151
s/is_close/is_closed/

(Do the same for the other functions as well)