Some one who does itikaf voluntarily in Ramadan and some one who has to do itikaf are in the same position regarding what is halal for them and what is haram. I have not heard that the Messenger of Allah (ﷺ) ever did itikaf other than voluntarily."
Malik said, that if a woman did itikaf and then menstruated during her itikaf, she went back to her house, and, when she was pure again she returned to the mosque, at whatever time it was that she became pure. She then continued her itikaf from where she left off. This was the same situation as with a woman who had to fast two consecutive months, and who menstruated and then became pure. She then continued the fast from where she had left off and did not delay doing so.