util to get gear's uid given the uuid