usrloc: fix memory leak on DB_ONLY mode on RPC commands