Bluetooth: Simplify logic when checking SMP_FLAG_TK_VALID