I think it's easy to draw parallels after the fact, but the trap of reading too much into it is always there. It may have been the case that Tolkien's unconscious was at work here, but he's gone on record many times as refuting any such parallels, and if he was confronted with this theory, however plausible it may be (and it certainly looks to me to be), it's difficult to see him doing otherwise.