Added Coverity model for our spinlocks and mutexes.
Rename KEEP_FUNCTION as G_GNUC_USED.
Added G_GNUC_UNUSED to tag functions that may be unused depending on options.