pulse-rs: Remove shift checks in flag validation.
pulse-rs: Remove shift checks in flag validation.

Replace the use of shift with and and-with-mask to check only valid
flag bits are set.

djg/cubeb-pulse-rs