Pakistan briefly closes border crossings ahead of Afghan polls