I posted a question (and eventually, a quick fix). Please have a look at http://stackoverflow.com/questions/10390127/ramaze-locks-uploaded-files for more info.
Fixes issue #43
Closes uploaded file, since leaving it opened doesn't seem to be
required, and it might lead to issues on Win32.
Added spec to check that file has been closed.