A common thought would be to install the barricades before starting defense missions, but I am here to tell you don't. There are only a limited number of defense missions in the first place. Rather than running through the game multiple times unless absolutely necessarily, take your time when one starts to then install them. You only need to install 5 to get the trophy, and there are plenty of openings to barricade or re-barricade.