Boundary-lubricated friction in presence of a nano-well