Caging of a d-dimensional sphere and its relevance for the random dense sphere packing