What happens if you try to manually eject the folder? You can do this by choosing Go to Folder... from the Finder's Go menu, and pasting in: ~/Library
In there you should see a folder called Mail. Try right-clicking on it and choosing Eject, let us know what happens.
In there you should see a folder called Mail. Try right-clicking on it and choosing Eject, let us know what happens.