add in more semaphores and mutexes for the set data

The end goal is to not have a socket being read in the ccache.c implementation