Renamed "struct mutex" as "struct lmutex" to avoid conflicts on Solaris.