In 2.0.20 I tried "cd /tmp; mkdir X; cd X; rmdir /tmp/X" with success. A subsequent "pwd" complains about the working directory...
If it's not a feature, my NULL-understanding of the kernel internal suggests taht either the inode of the current working directory isn't locked, or the lock is ignored when removing a directory.