Removed constant 'NULL'.
Fix lock problem.