Offshore oil and gas wellhead safety valve