Pakistan-born David Headley told court he would appear as prosecution witness if he was pardoned over 2008 attack.