Fix local_buffer test when checking local memory size

This fixes a test failure for implementations which don't
properly report dynamically set local memory buffer sizes.