Simplify `new_slot_count` and add explicit checks
Simplify `new_slot_count` and add explicit checks

crossbeam-rs/crossbeam,crossbeam-rs/crossbeam,crossbeam-rs/crossbeam,aturon/crossbeam,crossbeam-rs/crossbeam