[PATCH] bluetooth: Perform careful capability checks in hci_sock_ioctl()