Lua bindings for lock/unlock functions

Based on the corresponding bindings in plugins/python/uwsgi_pymodule.c