Fixed couple issues

* (imp) Lock / RLock tries
* (fix) stack