Adding Illumos' sem.c
Trying to separate the search of existent semaphores in sem_get_mapping
Again. trying to separate the look up in sem_get_mapping
Debugging sem_get_mapping
Minor changes to make it easier to debug