Fixes some bugs with the semaphore, also turns out bookings weren't being created if not checked, fixed.

Signed-off-by: sgargCSE <sgarg@cse.unsw.edu.au>