A wave of bombings hit Baghdad after nightfall on Thursday, killing at least 21 people and wounding scores of others.