wait: add wait_bit_cleared() helper