py/modthread: Add with-context capabilities to lock object.
py/modthread: Add with-context capabilities to lock object.

PappaPeppar/micropython,trezor/micropython,pramasoul/micropython,MrSurly/micropython-esp32,chrisdearman/micropython,tralamazza/micropython,ganshun666/micropython,henriknelson/micropython,hiway/micropython,pozetroninc/micropython,Peetz0r/micropython-esp32,chrisdearman/micropython,trezor/micropython,alex-march/micropython,pramasoul/micropython,TDAbboud/micropython,pfalcon/micropython,tuc-osg/micropython,MrSurly/micropython-esp32,tobbad/micropython,jmarcelino/pycom-micropython,puuu/micropython,trezor/micropython,HenrikSolver/micropython,tralamazza/micropython,deshipu/micropython,pozetroninc/micropython,Peetz0r/micropython-esp32,ryannathans/micropython,micropython/micropython-esp32,emfcamp/micropython,cwyark/micropython,MrSurly/micropython,micropython/micropython-esp32,MrSurly/micropython-esp32,micropython/micropython-esp32,adafruit/micropython,ganshun666/micropython,deshipu/micropython,hosaka/micropython,cwyark/micropython,alex-robbins/micropython,alex-march/micropython,alex-march/micropython,dmazzella/micropython,turbinenreiter/micropython,selste/micropython,TDAbboud/micropython,micropython/micropython-esp32,oopy/micropython,matthewelse/micropython,SHA2017-badge/micropython-esp32,adafruit/micropython,bvernoux/micropython,bvernoux/micropython,mhoffma/micropython,alex-robbins/micropython,hiway/micropython,hiway/micropython,puuu/micropython,ryannathans/micropython,adafruit/circuitpython,hiway/micropython,MrSurly/micropython,puuu/micropython,AriZuu/micropython,torwag/micropython,matthewelse/micropython,redbear/micropython,tuc-osg/micropython,jmarcelino/pycom-micropython,emfcamp/micropython,toolmacher/micropython,ganshun666/micropython,kerneltask/micropython,dxxb/micropython,matthewelse/micropython,pfalcon/micropython,jmarcelino/pycom-micropython,kerneltask/micropython,PappaPeppar/micropython,alex-march/micropython,infinnovation/micropython,cwyark/micropython,swegener/micropython,toolmacher/micropython,hiway/micropython,tuc-osg/micropython,HenrikSolver/micropython,SHA2017-badge/micropython-esp32,lowRISC/micropython,dmazzella/micropython,pramasoul/micropython,bvernoux/micropython,tuc-osg/micropython,AriZuu/micropython,adafruit/circuitpython,infinnovation/micropython,oopy/micropython,deshipu/micropython,chrisdearman/micropython,blazewicz/micropython,MrSurly/micropython-esp32,dxxb/micropython,bvernoux/micropython,AriZuu/micropython,MrSurly/micropython,ryannathans/micropython,mhoffma/micropython,PappaPeppar/micropython,HenrikSolver/micropython,Timmenem/micropython,ryannathans/micropython,Timmenem/micropython,pramasoul/micropython,Timmenem/micropython,swegener/micropython,toolmacher/micropython,Peetz0r/micropython-esp32,blazewicz/micropython,puuu/micropython,adafruit/circuitpython,dxxb/micropython,chrisdearman/micropython,mhoffma/micropython,oopy/micropython,dxxb/micropython,cwyark/micropython,redbear/micropython,dxxb/micropython,Timmenem/micropython,selste/micropython,TDAbboud/micropython,TDAbboud/micropython,pozetroninc/micropython,adafruit/circuitpython,SHA2017-badge/micropython-esp32,torwag/micropython,kerneltask/micropython,alex-robbins/micropython,swegener/micropython,tobbad/micropython,emfcamp/micropython,adafruit/circuitpython,swegener/micropython,blazewicz/micropython,alex-robbins/micropython,lowRISC/micropython,deshipu/micropython,torwag/micropython,ganshun666/micropython,puuu/micropython,pfalcon/micropython,infinnovation/micropython,MrSurly/micropython,lowRISC/micropython,blazewicz/micropython,torwag/micropython,kerneltask/micropython,deshipu/micropython,infinnovation/micropython,matthewelse/micropython,adafruit/micropython,selste/micropython,mhoffma/micropython,dmazzella/micropython,adafruit/circuitpython,alex-march/micropython,trezor/micropython,Peetz0r/micropython-esp32,cwyark/micropython,kerneltask/micropython,matthewelse/micropython,HenrikSolver/micropython,infinnovation/micropython,tralamazza/micropython,toolmacher/micropython,emfcamp/micropython,SHA2017-badge/micropython-esp32,HenrikSolver/micropython,matthewelse/micropython,turbinenreiter/micropython,TDAbboud/micropython,pfalcon/micropython,AriZuu/micropython,adafruit/micropython,pozetroninc/micropython,selste/micropython,ganshun666/micropython,hosaka/micropython,alex-robbins/micropython,turbinenreiter/micropython,lowRISC/micropython,lowRISC/micropython,tobbad/micropython,adafruit/micropython,redbear/micropython,oopy/micropython,pozetroninc/micropython,oopy/micropython,selste/micropython,pramasoul/micropython,jmarcelino/pycom-micropython,tuc-osg/micropython,emfcamp/micropython,dmazzella/micropython,henriknelson/micropython,Timmenem/micropython,torwag/micropython,chrisdearman/micropython,redbear/micropython,AriZuu/micropython,pfalcon/micropython,hosaka/micropython,redbear/micropython,bvernoux/micropython,henriknelson/micropython,mhoffma/micropython,hosaka/micropython,micropython/micropython-esp32,swegener/micropython,trezor/micropython,PappaPeppar/micropython,MrSurly/micropython-esp32,tobbad/micropython,turbinenreiter/micropython,PappaPeppar/micropython,henriknelson/micropython,hosaka/micropython,MrSurly/micropython,turbinenreiter/micropython,blazewicz/micropython,henriknelson/micropython,Peetz0r/micropython-esp32,jmarcelino/pycom-micropython,toolmacher/micropython,ryannathans/micropython,tralamazza/micropython,tobbad/micropython,SHA2017-badge/micropython-esp32