use SolarMutex instead of a custom GdkThreadLock

C.f. commit 861a1c2dea41c141bffce54c30d53e65b7b88973.

Change-Id: I9f6cf917c63ee8c0db5461529c4ee277e231368f