update container's state after we close the waitLock

Fixes #4677

@anandkumarpatel  @ykumar6  can you test this one ?