rlimit: add and utilize lim_shared

MFC after:	2 weeks
rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.

MFC after:	2 weeks