tests: fix shm test deadlock

The test was not bringing the source back to NULL, so its thread
could start creating a buffer while the pads were being shutdown.