[PATCH] Add declarations for workitem and synchronization functions

Thanks and apologies for the delay, I've incorporated your changes
into r161313.

BTW, if you are interested in incorporating your r600 changes into
mainline libclc, I'll be happy to consider your changes once the
backend enters staging in mainline LLVM. I imagine that it can be
disabled by default while the backend is in staging.

Thanks,