Made confirmBookings() synchronized to avoid race conditions when removing pending bookings