File based locking in HDFS