Implemented (untested) all of bucketed_semaphore_t.