Simple nonblocking lock API for ngx_lua based on shared memory dictionaries