Merge pull request #1 from wagnert/master

Remove unnecessary lock/unlock calls when stack values