Fix auto tango monitor
This is a fix proposal for issue #17 (closed):
- acquire lock on
__enter__
instead of constructor - release the GIL while acquiring the lock
- safer release method
I quickly tested it with the example included in issue #17 (closed), and it seems to work fine!