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