Fix couple of file descriptor leaks

This patch fixes two file descriptor leaks when using the Python API: when starting a new container or spawning  a LXC monitor process.