Lincolnshire councils will close beaches if necessary