added simple mutex support

Check out the test directory for a bit of dev_appserver.py-testing, and see if you agree with the mutex algorithms.