[DROOLS-671] make KnowledgeBaseAdapter in legacy API to implement Externalizable

(cherry picked from commit 59bc9905eb24309dacb9e7610ffbc32d6560440e)