Fixed a mutex leak.
Fixed NULL pointer dereference bug.
Minor performance improvement.
Fixed erroneous check for CreateFileMapping success. CreateFileMapping returns NULL on error.
Merge pull request #112 from msuvajac/2.x

Couple of bug fixes and a minor performance improvement.