Man with 39 wives dies in India