Motorcyclists in Nigeria have been wearing dried pumpkin shells on their heads to dodge new laws forcing them to wear helmets, authorities have said.