Nicholas Hoult has backed out of his role as Gilderoy Lockhart in the upcoming Harry Potter series amid mounting backlash over JK Rowling.