A repeat offender has returned to prison for exposing himself to a lone woman and masturbating just 12 days after being released on licence.