The award-winning director on taking on the X-rated film that still carries cultural baggage and making the film ‘I probably needed as a woman’