Should writers give credit to reference librarians?
Yes, the acknowledgements section of your paper is an appropriate place to thank anyone who provided valuable assistance.  Depending on the circumstances, you could phrase it pretty generally ("I thank the reference librarians at University X for their assistance in conducting a literature search"), you could thank specific people, or you could even identify particular contributions ("I am grateful to Y for bringing the literature on Z to my attention").