Refactor fix for JENA-399 slightly to provide a single requiresPrepared() method which checks the prepared state and calls prepare() if necessary

git-svn-id: https://svn.apache.org/repos/asf/jena/trunk@1449212 13f79535-47bb-0310-9956-ffa450edef68