The Massachusetts economy added only 5,100 jobs in April as the state, like much of the country, has been relatively slow to add back jobs at a late stage of the coronavirus pandemic.