Fixed virtual lock id

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed join parent field derefencing

Signed-off-by: Tom Wright <tom@inflatablecookie.com>