A curb is just a sign, at least for pedestrians. If a curb can help you not to cross into a bicycle lane, so can a clearly painted lane.