Critical current for the flow of superfluid3He in a confined geometry