cache: put all negative entry management code into dedicated functions
Reviewed by: kib MFC after: 1 week