tohkeyboard: free mutex if reading keyboard fails