First, herd immunity does not benefit from more bodies per se. You are portraying it as some sort of wall, where taking members out of the wall reduces the effectiveness. It is not like that at all. The proportion of previously exposed individuals required for herd immunity effects goes down as the frequency of potential spreading interactions goes down.
Second, there is no correlation between lockdown and lower vitamin D.
Third, we have clear data showing a profound reduction in the spread of other respiratory viruses (RSV, rhino, influenza). So, we have had many fewer deaths during lockdown that in previous years. A win, and yet you characterize it as a loss. Odd.