The 3.4-ounce limit only applies to carry-on luggage and personal items. In your checked baggage, you can bring much more. According to the TSA's sunscreen guidance, the container is limited to 17 fluid ounces (2L), which should be enough for most larger containers of sunscreen.