Always unlock mutex. Just to be sure.
Merge pull request #3 from kbudde/mutex

defer unlock mutex, close returns munmap error