[PATCH 5.4 004/282] bluetooth: Perform careful capability checks in hci_sock_ioctl()