Sleeping barber problem implementation in C language