If Jesus had not yet ascended to the Father, how could He have committed His Spirit to the Father?
I would say that when Jesus told Mary that He had not yet ascended to the Father, He was making reference to the ascension of His body (in glorified form)...