Fix resizing of shm apps

Change-Id: Iad94691317bde38603d9143f951b1b69326ab12e
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>