Iraq bombs kill 40; officials eye security