Fishing for or freeing objects in boreholes or wells