Move sems_table definition

Moved the declaration of sems_table into sem.h so that it is
accessible in a larger scope.