IOMX: allow configuration after going to loaded state

This was disallowed recently but we still use it as MediaCodcec.stop
only goes to loaded state, and does not free component.

Bug: 31450460
Change-Id: I72e092e4e55c9f23b1baee3e950d76e84a5ef28d
(cherry picked from commit e03b22839d78c841ce0a1a0a1ee1960932188b0b)

status_t OMXNodeInstance::createInputSurface(
        OMX_U32 portIndex, android_dataspace dataSpace,
        sp<IGraphicBufferProducer> *bufferProducer, MetadataBufferType *type) {
 if (bufferProducer == NULL) {
        ALOGE("b/25884056");
 return BAD_VALUE;
 }

 Mutex::Autolock autolock(mLock);
 status_t err = createGraphicBufferSource(portIndex, NULL /* bufferConsumer */, type);

 if (err != OK) {
 return err;
 }

    mGraphicBufferSource->setDefaultDataSpace(dataSpace);

 *bufferProducer = mGraphicBufferSource->getIGraphicBufferProducer();
 return OK;
}

status_t OMXNodeInstance::createInputSurface(
        OMX_U32 portIndex, android_dataspace dataSpace,
        sp<IGraphicBufferProducer> *bufferProducer, MetadataBufferType *type) {
 if (bufferProducer == NULL) {
        ALOGE("b/25884056");
 return BAD_VALUE;
 }

 Mutex::Autolock autolock(mLock);
 status_t err = createGraphicBufferSource(portIndex, NULL /* bufferConsumer */, type);

 if (err != OK) {
 return err;
 }

    mGraphicBufferSource->setDefaultDataSpace(dataSpace);

 *bufferProducer = mGraphicBufferSource->getIGraphicBufferProducer();
 return OK;
}
