Fix Lock Test
Fixed a logic error in the lockTest.ttr program which made the main thread not wait until both background threads were completed before terminating.
Improved parallel directive
-Fixed a problem with the parallel directive where passing by reference was a race condition
-Fixed a corner case where the main thread would improperly handle encountering a parallel block within a parallel block
-Added test cases reflecting the new functionality

Additionally, using the lock directive no longer results in a memory leak
Merge branch 'master' of github.com:IanFinlayson/tetra