For centuries the world's biggest military/industrial complex, the dockyard stood as a testament to the fear of invasion, particularly by France. As he hears the stories of those who have lived and worked there, Jonathan Meades considers its role as an instrument for the generation of dread.