input: Updates to Phantom Key Presses filter

Changes for version 2 of the filtering module:
- Use a mutex inside HOME key scan and report routines
- Replace custom bit operations with related bitops routines (__set_bit, __clear_bit and test_bit)