Modified local print so that it uses the assign_user_flags table to retrieve the locked status to reflect the database change in Moodle 2.5.