Country clubs are spending millions of dollars to attract younger members and modernize for a new generation.