dbg: Set mutex/cond with complex magics numbers

+ validate uio lba is within valid range

Signed-off-by: Shachar Sharon <shachars@xxxxxx>
gbx: Use 'genname' instead of pre-alloc name-buffers