Change bucket implementation using lock to atomic RMW, resolved race conditions present in earlier Take method. Imroved performance by 1%.