This makes sure the mutex is held around the unreference. Signed-off-by: Dave Airlie <airlied@redhat.com>