core: add testCanDoActionImageLocked for ExportRepoImage

Change-Id: Ie5987cddb5e0a9bb8f9beb9ce765ed83f927671b
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>