If you ask me then it is not worth it.
You can drive from pretty much anywhere in Costa Rica to Panama City in 2-3 days and it will be 120% easier for you to ship from there.
Shipping from Costa Rica is also going to be much much more costly, at least that is what I think, but maybe someone can tell me I am wrong.
Much fewer vessels are going that way and you may have to wait longer for one that will take both you and your bike.
But hey its all adventure and the shortest way isnt always the most exciting so GL
South East Asia, USA, Central and South America and Scandinavia.