Fix: ipc: Respect the parameter of pick_ipc_buffer() but don't let it affect the global value
e5964d5 changed the logic in pick_ipc_buffer(). It doesn't look right
to let the parameter "max" affect "global_max". And any following
invocations would basically ignore "max" and directly return "global_max".