non-desktop: Avoid pulling in avmedia.

Change-Id: Ie4a6a4ddb1615f917bccfb68b20cc1ac7587a2ca
non-desktop: Don't even attempt to create a lockfile.

Change-Id: I68a4cf8f2e302b49e3d2719ee2bad3f823e8a036
non-desktop: Avoid dbaccess.

Change-Id: I4cabda76917cded05a2978b1a280775b7f77a0de
Remove LockHelper::getGlobalMutex().

Do what the TODO suggests - change it to SolarMutex in most cases.

In some cases it is only there to guard a local static, introduce a local
mutex for those.

Change-Id: Idc3155818f737b958b36ee9125e2e9e8cb1b91a1