Added missing unlock() calls in LocalFile

Change-Id: Id427fb424bfb46670f2074664aca750014c70225
Merge "Added missing unlock() calls in LocalFile"