bitops: Implement SMP-safe test_and_change_bit() using AMOXOR

Signed-off-by: Albert Ou <a_ou@eecs.berkeley.edu>
irqflags: Mark functions as inline