Pin structures on low-dimensional manifolds