Kraken: new api ptobject external_code

Will be use by jormungandr to remove the database.
No useless break please, it's a warning on clang (dead code)