Fixed readNB() bug
Fixed readNB() bug

Fixed a race condition with readNB() in USBHID that caused reports to be
periodically returned empty.

logost/mbed,ryankurte/mbed-os,cvtsi2sd/mbed-os,kjbracey-arm/mbed,jrjang/mbed,Shengliang/mbed,karsev/mbed-os,netzimme/mbed-os,kl-cruz/mbed-os,autopulated/mbed,pi19404/mbed,iriark01/mbed-drivers,alertby/mbed,netzimme/mbed-os,Tiryoh/mbed,tung7970/mbed-os,jamesadevine/mbed,sg-/mbed-drivers,jpbrucker/mbed,ryankurte/mbed-os,tung7970/mbed-os-1,al177/mbed,mnlipp/mbed,GustavWi/mbed,geky/mbed,tung7970/mbed-os,svastm/mbed,pi19404/mbed,masaohamanaka/mbed,HeadsUpDisplayInc/mbed,Archcady/mbed-os,kjbracey-arm/mbed,adamgreen/mbed,adamgreen/mbed,Timmmm/mbed,mazimkhan/mbed-os,ARM-software/mbed-beetle,bulislaw/mbed-os,getopenmono/mbed,wodji/mbed,Marcomissyou/mbed,jamesadevine/mbed,screamerbg/mbed,j-greffe/mbed-os,geky/mbed,EmuxEvans/mbed,mikaleppanen/mbed-os,EmuxEvans/mbed,masaohamanaka/mbed,c1728p9/mbed-os,ban4jp/mbed,sam-geek/mbed,maximmbed/mbed,tung7970/mbed-os,devanlai/mbed,struempelix/mbed,0xc0170/mbed-drivers,FranklyDev/mbed,karsev/mbed-os,wodji/mbed,NitinBhaskar/mbed,YarivCol/mbed-os,rosterloh/mbed,pbrook/mbed,xcrespo/mbed,fahhem/mbed-os,hwfwgrp/mbed,Sweet-Peas/mbed,c1728p9/mbed-os,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,radhika-raghavendran/mbed-os5.1-onsemi,fpiot/mbed-ats,j-greffe/mbed-os,arostm/mbed-os,struempelix/mbed,JasonHow44/mbed,alertby/mbed,xcrespo/mbed,bentwire/mbed,bulislaw/mbed-os,EmuxEvans/mbed,bikeNomad/mbed,bulislaw/mbed-os,screamerbg/mbed,struempelix/mbed,ryankurte/mbed-os,bcostm/mbed-os,betzw/mbed-os,theotherjimmy/mbed,nvlsianpu/mbed,j-greffe/mbed-os,ARM-software/mbed-beetle,svogl/mbed-os,NordicSemiconductor/mbed,devanlai/mbed,radhika-raghavendran/mbed-os5.1-onsemi,getopenmono/mbed,catiedev/mbed-os,svogl/mbed-os,adamgreen/mbed,GustavWi/mbed,logost/mbed,getopenmono/mbed,Marcomissyou/mbed,bikeNomad/mbed,betzw/mbed-os,catiedev/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,mbedmicro/mbed,radhika-raghavendran/mbed-os5.1-onsemi,fanghuaqi/mbed,karsev/mbed-os,kpurusho/mbed,YarivCol/mbed-os,DanKupiniak/mbed,andcor02/mbed-os,screamerbg/mbed,adustm/mbed,alertby/mbed,pradeep-gr/mbed-os5-onsemi,adamgreen/mbed,adustm/mbed,RonEld/mbed,nabilbendafi/mbed,rgrover/mbed,svogl/mbed-os,pbrook/mbed,cvtsi2sd/mbed-os,dbestm/mbed,jferreir/mbed,YarivCol/mbed-os,nRFMesh/mbed-os,GustavWi/mbed,CalSol/mbed,mmorenobarm/mbed-os,Willem23/mbed,rgrover/mbed,jferreir/mbed,pedromes/mbed,devanlai/mbed,JasonHow44/mbed,kjbracey-arm/mbed,jrjang/mbed,ban4jp/mbed,nabilbendafi/mbed,andcor02/mbed-os,fvincenzo/mbed-os,getopenmono/mbed,arostm/mbed-os,rgrover/mbed,CalSol/mbed,fanghuaqi/mbed,mmorenobarm/mbed-os,catiedev/mbed-os,al177/mbed,getopenmono/mbed,ban4jp/mbed,fanghuaqi/mbed,RonEld/mbed,andcor02/mbed-os,iriark01/mbed-drivers,alertby/mbed,larks/mbed,GustavWi/mbed,RonEld/mbed,Tiryoh/mbed,fahhem/mbed-os,Tiryoh/mbed,svogl/mbed-os,mikaleppanen/mbed-os,infinnovation/mbed-os,bulislaw/mbed-os,andcor02/mbed-os,mazimkhan/mbed-os,brstew/MBED-BUILD,bcostm/mbed-os,pbrook/mbed,mazimkhan/mbed-os,Shengliang/mbed,logost/mbed,karsev/mbed-os,nRFMesh/mbed-os,NordicSemiconductor/mbed,bcostm/mbed-os,jpbrucker/mbed,EmuxEvans/mbed,struempelix/mbed,fpiot/mbed-ats,theotherjimmy/mbed,andreaslarssonublox/mbed,Marcomissyou/mbed,pedromes/mbed,adustm/mbed,mmorenobarm/mbed-os,catiedev/mbed-os,catiedev/mbed-os,nvlsianpu/mbed,kl-cruz/mbed-os,cvtsi2sd/mbed-os,dbestm/mbed,naves-thiago/mbed-midi,autopulated/mbed,Sweet-Peas/mbed,ryankurte/mbed-os,sam-geek/mbed,bremoran/mbed-drivers,NitinBhaskar/mbed,fanghuaqi/mbed,tung7970/mbed-os-1,kpurusho/mbed,hwfwgrp/mbed,jeremybrodt/mbed,HeadsUpDisplayInc/mbed,wodji/mbed,netzimme/mbed-os,NXPmicro/mbed,j-greffe/mbed-os,wodji/mbed,bcostm/mbed-os,EmuxEvans/mbed,HeadsUpDisplayInc/mbed,devanlai/mbed,pedromes/mbed,theotherjimmy/mbed,netzimme/mbed-os,monkiineko/mbed-os,theotherjimmy/mbed,infinnovation/mbed-os,kl-cruz/mbed-os,DanKupiniak/mbed,logost/mbed,kpurusho/mbed,jrjang/mbed,naves-thiago/mbed-midi,mikaleppanen/mbed-os,fahhem/mbed-os,larks/mbed,jrjang/mbed,nvlsianpu/mbed,rosterloh/mbed,masaohamanaka/mbed,Marcomissyou/mbed,bulislaw/mbed-os,bulislaw/mbed-os,dbestm/mbed,larks/mbed,Timmmm/mbed,rosterloh/mbed,nRFMesh/mbed-os,jferreir/mbed,hwfwgrp/mbed,NXPmicro/mbed,sg-/mbed-drivers,Timmmm/mbed,nvlsianpu/mbed,bentwire/mbed,struempelix/mbed,jferreir/mbed,ban4jp/mbed,adamgreen/mbed,jrjang/mbed,EmuxEvans/mbed,jeremybrodt/mbed,svastm/mbed,nRFMesh/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,jeremybrodt/mbed,mnlipp/mbed,HeadsUpDisplayInc/mbed,RonEld/mbed,nRFMesh/mbed-os,tung7970/mbed-os-1,kl-cruz/mbed-os,nvlsianpu/mbed,dbestm/mbed,larks/mbed,c1728p9/mbed-os,mnlipp/mbed,DanKupiniak/mbed,jeremybrodt/mbed,Shengliang/mbed,Tiryoh/mbed,bentwire/mbed,tung7970/mbed-os-1,pbrook/mbed,Archcady/mbed-os,theotherjimmy/mbed,jamesadevine/mbed,karsev/mbed-os,FranklyDev/mbed,pradeep-gr/mbed-os5-onsemi,dbestm/mbed,autopulated/mbed,jamesadevine/mbed,NordicSemiconductor/mbed,mikaleppanen/mbed-os,maximmbed/mbed,Archcady/mbed-os,alertby/mbed,pi19404/mbed,K4zuki/mbed,mmorenobarm/mbed-os,HeadsUpDisplayInc/mbed,pradeep-gr/mbed-os5-onsemi,FranklyDev/mbed,adustm/mbed,NXPmicro/mbed,Archcady/mbed-os,geky/mbed,brstew/MBED-BUILD,bikeNomad/mbed,screamerbg/mbed,HeadsUpDisplayInc/mbed,maximmbed/mbed,logost/mbed,betzw/mbed-os,screamerbg/mbed,al177/mbed,andreaslarssonublox/mbed,adamgreen/mbed,JasonHow44/mbed,monkiineko/mbed-os,cvtsi2sd/mbed-os,fahhem/mbed-os,jpbrucker/mbed,dbestm/mbed,catiedev/mbed-os,GustavWi/mbed,sam-geek/mbed,monkiineko/mbed-os,naves-thiago/mbed-midi,pradeep-gr/mbed-os5-onsemi,arostm/mbed-os,nvlsianpu/mbed,Timmmm/mbed,mbedmicro/mbed,tung7970/mbed-os,K4zuki/mbed,Archcady/mbed-os,sam-geek/mbed,Archcady/mbed-os,kpurusho/mbed,K4zuki/mbed,ban4jp/mbed,masaohamanaka/mbed,fvincenzo/mbed-os,mnlipp/mbed,Sweet-Peas/mbed,nabilbendafi/mbed,YarivCol/mbed-os,FranklyDev/mbed,K4zuki/mbed,cvtsi2sd/mbed-os,fpiot/mbed-ats,betzw/mbed-os,brstew/MBED-BUILD,theotherjimmy/mbed,masaohamanaka/mbed,RonEld/mbed,ban4jp/mbed,CalSol/mbed,monkiineko/mbed-os,naves-thiago/mbed-midi,jeremybrodt/mbed,mmorenobarm/mbed-os,naves-thiago/mbed-midi,fanghuaqi/mbed,pradeep-gr/mbed-os5-onsemi,YarivCol/mbed-os,infinnovation/mbed-os,rosterloh/mbed,andcor02/mbed-os,Sweet-Peas/mbed,rosterloh/mbed,fvincenzo/mbed-os,struempelix/mbed,brstew/MBED-BUILD,kpurusho/mbed,mbedmicro/mbed,svastm/mbed,mbedmicro/mbed,maximmbed/mbed,geky/mbed,kl-cruz/mbed-os,jamesadevine/mbed,betzw/mbed-os,fpiot/mbed-ats,pedromes/mbed,tung7970/mbed-os,brstew/MBED-BUILD,mnlipp/mbed,masaohamanaka/mbed,Timmmm/mbed,infinnovation/mbed-os,tung7970/mbed-os-1,autopulated/mbed,adustm/mbed,Marcomissyou/mbed,screamerbg/mbed,andreaslarssonublox/mbed,wodji/mbed,infinnovation/mbed-os,Willem23/mbed,Marcomissyou/mbed,jferreir/mbed,fvincenzo/mbed-os,j-greffe/mbed-os,xcrespo/mbed,pi19404/mbed,NXPmicro/mbed,arostm/mbed-os,NitinBhaskar/mbed,devanlai/mbed,andreaslarssonublox/mbed,maximmbed/mbed,xcrespo/mbed,Willem23/mbed,ryankurte/mbed-os,wodji/mbed,karsev/mbed-os,hwfwgrp/mbed,jamesadevine/mbed,bcostm/mbed-os,pi19404/mbed,logost/mbed,nabilbendafi/mbed,DanKupiniak/mbed,rgrover/mbed,getopenmono/mbed,svastm/mbed,0xc0170/mbed-drivers,devanlai/mbed,NitinBhaskar/mbed,alertby/mbed,maximmbed/mbed,Tiryoh/mbed,CalSol/mbed,ryankurte/mbed-os,adustm/mbed,jpbrucker/mbed,pedromes/mbed,fahhem/mbed-os,al177/mbed,pedromes/mbed,bikeNomad/mbed,al177/mbed,mnlipp/mbed,bremoran/mbed-drivers,ARM-software/mbed-beetle,geky/mbed,NordicSemiconductor/mbed,andreaslarssonublox/mbed,K4zuki/mbed,hwfwgrp/mbed,pbrook/mbed,monkiineko/mbed-os,JasonHow44/mbed,al177/mbed,cvtsi2sd/mbed-os,svogl/mbed-os,sam-geek/mbed,RonEld/mbed,andcor02/mbed-os,autopulated/mbed,mbedmicro/mbed,j-greffe/mbed-os,Sweet-Peas/mbed,jpbrucker/mbed,nabilbendafi/mbed,pi19404/mbed,Sweet-Peas/mbed,ARM-software/mbed-beetle,arostm/mbed-os,fvincenzo/mbed-os,Tiryoh/mbed,svastm/mbed,mazimkhan/mbed-os,betzw/mbed-os,brstew/MBED-BUILD,Willem23/mbed,hwfwgrp/mbed,K4zuki/mbed,Timmmm/mbed,naves-thiago/mbed-midi,c1728p9/mbed-os,c1728p9/mbed-os,netzimme/mbed-os,larks/mbed,rgrover/mbed,arostm/mbed-os,bentwire/mbed,bcostm/mbed-os,YarivCol/mbed-os,kjbracey-arm/mbed,NXPmicro/mbed,mazimkhan/mbed-os,svogl/mbed-os,pbrook/mbed,Shengliang/mbed,fahhem/mbed-os,kpurusho/mbed,mmorenobarm/mbed-os,mikaleppanen/mbed-os,Willem23/mbed,monkiineko/mbed-os,fpiot/mbed-ats,c1728p9/mbed-os,jferreir/mbed,jpbrucker/mbed,xcrespo/mbed,JasonHow44/mbed,xcrespo/mbed,infinnovation/mbed-os,jrjang/mbed,FranklyDev/mbed,NitinBhaskar/mbed,rosterloh/mbed,mazimkhan/mbed-os,Shengliang/mbed,NXPmicro/mbed,larks/mbed,bikeNomad/mbed,Shengliang/mbed,JasonHow44/mbed,nabilbendafi/mbed,CalSol/mbed,kl-cruz/mbed-os,bentwire/mbed,nRFMesh/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,bentwire/mbed,mikaleppanen/mbed-os,autopulated/mbed,fpiot/mbed-ats,netzimme/mbed-os