Pilot suicide is only a relatively recent addition to accident statistics. There were many accidents in earlier days (prior to FDRs etc.) which remained unsolved. They were attributed to unknown factors and in those days suicide probably never entered the equation. It is not unreasonable to consider that a minority of those may indeed have been the result of suicide. We just don't know. Therefore, I'm not overly convinced that it is a more recent trend.