[PATCH v3 04/12] tee: simplify shm pool handling