Shared mem locks fixed

This should fix https://github.com/pagespeed/ngx_pagespeed/issues/154 (https://github.com/pagespeed/ngx_pagespeed/commit/1971ccc44fd9eede88b3e95e7a9ff9ed0966c87a)

@jeffkaufman 
Would you be able to confirm the fix?