My dictionary of HIstorical Slang says "dead as a door-nail" dates back to at least 1350 and speculates that the origin may be "perhaps the striking plate of a door-knocker".On the "lamproom" aspect: I've a vague memory of the construction of powder-rooms using either copper or tree-nails to cut risk of sparks...?
Regards