update container's state after we close the waitLock

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