Add comment on lc_ctr about cache-id param to take
bugfix: lc-detach

Fixed two points
1. nr variable is computed lazily
2. time module is imported

without 2
error emitted in try block is catched by the VM
and context immediately jumps to finally block.