[clang] fix lib cpluff build

if defined(CP_THREADS) || !defined(NDEBUG)
don't define cpi_lock_framework()
and cpi_context_owner is not defined
[clang] fix rsxs screensaver build

clang need to known that we use some gnu inline semantics
[clang] fix lib cpluff build

if defined(CP_THREADS) || !defined(NDEBUG)
don't define cpi_lock_framework()
and cpi_context_owner is not defined