[corlib] Add more argument checks to ConcurrentStack