Add flock support

Re-raising against new branch, see https://github.com/thornag/php-vfs/pull/32

@mathroc, @milesj, @mattzuba

See https://github.com/thornag/php-vfs/issues/24