api: Add missing pod locks
api: Add missing pod locks

Both StatusPod() and StatusContainer() functions from the API were
missing a pod lock. Basically, they were able to retrieve and modify
pods/containers while potential other functions were doing some
modifications on the same entities.

This will solve the racy and sporadic issues that we have had through
the CRI-O testing of the runtime implementation based on this library.

Signed-off-by: Sebastien Boeuf <90b401417360b1924ef3f520ddee932686110f85@intel.com>

containers/virtcontainers,containers/virtcontainers