Instead of arresting teen for sneaking into gym, cop buys him membership