acm.c: Handle 0 retries in acm_issue_query

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: In acm_issue_query, add unsuccessful DB query log message on exit

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: In acm_svr_resolve_path, only issue DB query if acm_issue_query_done

when in SSA mode

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
acm.c: Minor change to combine 2 ifs into 1 in acm_issue_query

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