[acm distrib ssa core].c: Refactor ssa_open_lock_file function

Move common error message preparation into ssa_open_lock_file function

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
core.c: Log the same lock error like distrib and acm

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>