locks: Remove unused arg from dump_one_file_lock

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
locks: Parse lock kind earlier

Currently we keep the lock type (posix/flock) till the
time we dump it, then "decode" it into binary value.
I will need the easy-to-check one early, so parse the
kind in proc_parse.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>