Frustration and sound attenuation in structural glasses