Compute defaultUserDataPath lazily
defaultUserDataPath was a static QString member initialized via
QStandardPaths::writableLocation(), which uses JNI on Android. As
a namespace-scope static it ran at library load, before Qt's JNI
is set up, and crashed if the library was loaded ahead of that.
Turn it into a static member function backed by a lazy local
static, so the JNI call runs on first use instead.
Pick-to: 6.12 6.11
Task-number: QTBUG-141461
Change-Id: Icc01d6d4f1a5b89616a3546dd5bb176a710aabca
Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>