try/finally for locks