node: add lock implementation for sim platform