The city’s public golf courses broke records this year thanks to a short winter and a pandemic-related spike in interest, parks officials said.