node/leader use same lock function