The kernels since 2.4.24-pre1 no longer have an 'int account' parameter in this function; however, grsecurity does this:
if(account) gr_learn_resource(current, RLIMIT_LOCKS, current->locks, 0);
It looks like it would be safe to remove the condition; can anyone confirm this?