Changed warn_once to Base.warn_once in sparse/sparsematric.jl

Ref: #5169 @kbatseli
Merge pull request #5172 from ivarne/sparse_warning

Changed warn_once to Base.warn_once in sparse/sparsematric.jl