Safe mode is tied to the account's registered age, so setting the account to 13 or older is the intended way to lift it. That does not always take effect immediately, and some players find their privacy settings stay locked regardless.
When the age change refuses to stick, the account usually needs to go through Roblox support directly, since the restriction is enforced server-side and cannot be cleared from the settings page. A parent-managed account with an incorrect date of birth is the most common cause of the mismatch.