Hmm, that's odd. You could try exporting your object as an obj then reimporting it into a new scene and see if you can then detach it. Also try selecting all the faces that make up the lid and going to mesh > seperate, then select the two pieces and go to mesh > combine. This should give you the same outcome.