The impact of spiral density waves on the distribution of supernovae