Olivia Wilde granted restraining order against man who claimed he was her lover