When Justin Kurzel embarked on a film about musician Warren Ellis, neither knew it would encompass dementia, abuse, death and rebirth