Extended sleeping barber problem - POSIX