The workaround for now is to close those documents that are open in
the related directories, or install to a directory that doesn't have
anything open/locked. This is all conjecture... but your issue seems
related to #3.
I checked and I don't have any opened files! I even tried just after a reboot. I tried to change the PEAR basedir too.
I also have another pb with a package generated by Pyrus (pear does not install it at the correct location), but I am going to put all my 2 cents in the bug tracker...
Baptiste