More than 31,000 Harley-Davidson motorcycles have been found to have faulty headlight bulbs, and are being recalled for the issue to be resolved.